<%@ page language="java" contentType="text/html; charset=UTF-8"
	isELIgnored="false" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="f"%>
<%@ taglib uri="/mytag" prefix="yjd"%>
<div class="wrap">
	<div class="nav">
		<div class="return">
			<a href='<yjd:url url="/smstemplate/list"/>'>返回上一级</a>
		</div>
	</div>
	<form method="post" action='<yjd:url url="/smstemplate/save"/>' class="J_ajaxForm" autocomplete="off">
		<input type="hidden" name="idSmsTemplate" value="${model.idSmsTemplate }">
		<div class="h_a">${model.idSmsTemplate!=null?"编辑":"添加" }短信模板</div>

		<div class="table_full">
			<table width="100%">
				<tr>
					<th>参数编码（全部大写）：</th>
					<td><input name="code" type="text" class="input length_6"
						value="${model.code }"></td>
					<td><div class="fun_tips"></div></td>
				</tr>
				<tr>
					<th>是否立即发送：</th>
					<td><select name="is_then_send" class="length_6">
							<c:forEach items="${selectList }" var="item">
							<option ${item.value==model.is_then_send?"selected='selected'":"" } value="${item.value }">${item.description }</option>
							</c:forEach>
					</select></td>
					<td>
				</tr>
				<tr>
					<th>优先级：</th>
					<td><input name="priority" type="text" class="input length_6"
						value="${model.priority }"></td>
					<td><div class="fun_tips"></div></td>
				</tr>
				<tr>
					<th>允许最大发送失败次数：</th>
					<td><input name="maxFailure" type="text" class="input length_6"
						value="${model.maxFailure }"></td>
					<td><div class="fun_tips"></div></td>
				</tr>
				<tr>
					<th width="100">发送通道：</th>
					<td><select name="idSmsChannel" class="length_6">
							<c:forEach items="${smsChannelList }" var="item">
							<option ${item.idSmsChannel==model.idSmsChannel?"selected='selected'":"" } value="${item.idSmsChannel }">${item.name }</option>
							</c:forEach>
					</select></td>
					<td><div class="fun_tips"></div></td>
				</tr>
				<tr>
					<th>内容：</th>
					<td><textarea name="content" id="content" class="length_6">${model.content }</textarea></td>
					<td><div class="fun_tips"></div></td>
				</tr>
				<tr>
					<th>描述：</th>
					<td><textarea name="description" id="description" class="length_6">${model.description }</textarea></td>
					<td><div class="fun_tips"></div></td>
				</tr>
			</table>
		</div>


		<div class="btn_wrap">
			<div class="btn_wrap_pd">
				<button class="btn btn_submit mr10 J_ajax_submit_btn" type="submit">提交</button>
			</div>
		</div>
	</form>
	<!-- end -->
</div>
